package com.lebang.mapper;

import com.lebang.entity.sys.LbbGroupRole;
import com.lebang.example.LbbGroupRoleExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface LbbGroupRoleMapper {
    long countByExample(LbbGroupRoleExample example);

    int deleteByExample(LbbGroupRoleExample example);

    int deleteByPrimaryKey(Long id);

    int insert(LbbGroupRole record);

    int insertSelective(LbbGroupRole record);

    List<LbbGroupRole> selectByExample(LbbGroupRoleExample example);

    LbbGroupRole selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") LbbGroupRole record, @Param("example") LbbGroupRoleExample example);

    int updateByExample(@Param("record") LbbGroupRole record, @Param("example") LbbGroupRoleExample example);

    int updateByPrimaryKeySelective(LbbGroupRole record);

    int updateByPrimaryKey(LbbGroupRole record);


    LbbGroupRole getByRoleIdAndGroupId(@Param("roleid") String roleid, @Param("groupid") String groupid);
}